<div bsModal #addToInventorModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="addToInventorModal"
  aria-hidden="true">
  <div class="modal-dialog modal-sm">
    <form *ngIf="active" #addToInventorForm="ngForm" class="horizontal-form" novalidate (ngSubmit)="save()">
      <div class="modal-content">
        <div class="modal-header">
          <h4 class="modal-title pull-left">商品入库</h4>
          <button type="button" class="close pull-right" aria-label="Close" (click)="close()">
                        <span aria-hidden="true">&times;</span>
                    </button>
        </div>
        <div class="modal-body">
          <div class="form-group">
            <label class="control-label">入库数量</label>
            <input class="form-control input-sm" type="number" id="name" name="name" [(ngModel)]="inventoryDto.addToInventoryCount" required
              maxlength="32" minlength="2">
              <span class="help-block">要减少库存输入负数即可</span>
          </div>
        </div>
        <div class="modal-footer">
          <button [disabled]="saving" type="button" class="btn btn-default btn-sm" (click)="close()">取消</button>
          <button type="submit" class="btn btn-primary blue btn-sm" [disabled]="!addToInventorForm.form.valid">
                      <i class="fa fa-save"></i>
                      <span>保存</span>
                    </button>
        </div>
      </div>
    </form>
  </div>
</div>